package com.qianyu.core.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianyu.core.entity.bean.PayWay;
import com.qianyu.core.mapper.PayWayMapper;
import com.qianyu.core.service.PayWayService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class PayWayServiceImpl extends ServiceImpl<PayWayMapper, PayWay> implements PayWayService {


    @Override
    public List<PayWay> getPayWay() {
        return list(Wrappers.<PayWay>lambdaQuery().eq(PayWay::getStatus, 1).eq(PayWay::getDeleteStatus, 1));
    }
}
